package com.yunhe.merchants.model;

import com.yunhe.common.util.StringUtil;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @Author: DongWenYu
 * @Date: 2021/5/7 22:25
 */
public class FilterCondition {

    @ApiModelProperty(value = "关键字",required = false)
    private String keyWords;

    @ApiModelProperty(value = "关键字",required = false)
    private String text;

    @ApiModelProperty(value = "企业名称",required = false)
    private String companyName;

    @ApiModelProperty(value = "客户姓名",required = false)
    private String custName;

    @ApiModelProperty(value = "客户电话",required = false)
    private String custTel;
    @ApiModelProperty(value = "企业行业",required = false)
    private String industryType;
    @ApiModelProperty(value = "来源",required = false)
    private String dataSource;
    @ApiModelProperty(value = "时间排序",required = false ,example = "0为不排序，1为操作时间从近到远，2为操作时间从远到近.3为签约时间从近到远，4为签约时间从远到近，5为到期时间从近到远，6为到期时间从远到近。")
    private String timeSort = "1";
    @ApiModelProperty(value = "负责人",required = false)
    private Long principal;
    @ApiModelProperty(value = "负责部门",required = false)
    private Long responsibleDept;
    @ApiModelProperty(value = "推荐厂房",required = false)
    private Long recommendOffice;
    @ApiModelProperty(value = "当前状态",required = false)
    private String companyStatus;
    @ApiModelProperty(value = "当前状态",required = false)
    private String projectStatus;
    @ApiModelProperty(value = "最后操作时间起始",required = false)
    private String updateTimeStart;
    @ApiModelProperty(value = "最后操作时间起始",required = false)
    private String operatingStartTime;
    @ApiModelProperty(value = "最后操作时间结束",required = false)
    private String updateTimeEnd;
    @ApiModelProperty(value = "最后操作时间结束",required = false)
    private String operatingEndTime;

    private Long importPerson;

    @ApiModelProperty(value = "是否删除",required = false,hidden = true)
    private String isDelete="0";

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    /**组织id列表*/
    private List<Long> orgIds;

    private String order;

    private String industryCategorySelect;

    public String getIndustryCategorySelect() {
        return industryCategorySelect;
    }

    public void setIndustryCategorySelect(String industryCategorySelect) {
        if (!StringUtil.isEmpty(industryCategorySelect) && industryCategorySelect.endsWith("00")){
            this.industryCategorySelect = industryCategorySelect.substring(0,industryCategorySelect.lastIndexOf("00"));
        }else {
            this.industryCategorySelect = industryCategorySelect;
        }
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCustName() {
        return custName;
    }

    public void setCustName(String custName) {
        this.custName = custName;
    }

    public String getCustTel() {
        return custTel;
    }

    public void setCustTel(String custTel) {
        this.custTel = custTel;
    }

    public String getIndustryType() {
        return industryType;
    }

    public void setIndustryType(String industryType) {
        this.industryType = industryType;
        setIndustryCategorySelect(industryType);
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    public String getTimeSort() {
        return timeSort;
    }

    public void setTimeSort(String timeSort) {
        this.timeSort = timeSort;
    }

    public Long getPrincipal() {
        return principal;
    }

    public void setPrincipal(Long principal) {
        this.principal = principal;
    }

    public Long getResponsibleDept() {
        return responsibleDept;
    }

    public void setResponsibleDept(Long responsibleDept) {
        this.responsibleDept = responsibleDept;
    }

    public Long getRecommendOffice() {
        return recommendOffice;
    }

    public void setRecommendOffice(Long recommendOffice) {
        this.recommendOffice = recommendOffice;
    }

    public String getCompanyStatus() {
        return companyStatus;
    }

    public void setCompanyStatus(String companyStatus) {
        this.companyStatus = companyStatus;
    }

    public String getUpdateTimeStart() {
        return updateTimeStart;
    }

    public void setUpdateTimeStart(String updateTimeStart) {
        this.updateTimeStart = updateTimeStart;
    }

    public String getUpdateTimeEnd() {
        return updateTimeEnd;
    }

    public void setUpdateTimeEnd(String updateTimeEnd) {
        this.updateTimeEnd = updateTimeEnd;
    }

    public String getKeyWords() {
        return keyWords;
    }

    public void setKeyWords(String keyWords) {
        this.keyWords = keyWords;
        this.text = keyWords;
    }

    public String getProjectStatus() {
        return projectStatus;
    }

    public void setProjectStatus(String projectStatus) {
        this.projectStatus = projectStatus;
        this.companyStatus = projectStatus;
    }

    public String getOperatingStartTime() {
        return operatingStartTime;
    }
    public Long getImportPerson() {
        return importPerson;
    }

    public void setImportPerson(Long importPerson) {
        this.importPerson = importPerson;
    }
    public void setOperatingStartTime(String operatingStartTime) {
        this.operatingStartTime = operatingStartTime;
        this.updateTimeStart = operatingStartTime;
    }

    public String getOperatingEndTime() {
        return operatingEndTime;
    }

    public void setOperatingEndTime(String operatingEndTime) {
        this.operatingEndTime = operatingEndTime;
        this.updateTimeEnd = operatingEndTime;
    }

    public List<Long> getOrgIds() {
        return orgIds;
    }

    public void setOrgIds(List<Long> orgIds) {
        this.orgIds = orgIds;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}

